// ActorApi.js 封装演员模块相关接口
import myaxios from '../Myaxios'
import BASEURL from '../BaseUrl'
const MTURL = BASEURL.MTURL

const actorApi = {

    /**
     * 查询轮播图
     * @param {Object} params 参数对象。
     *  例如：{actorName:演员名称, actorAvatar:演员头像}
     * @return Promise
     */
    queryBanner(){
        let url = MTURL + "/mt_banner/banner"
        return myaxios.get(url)
    },
    // 查询四个列表
    queryFour(){
        let url = MTURL + '/mt_play/play_title'
        return myaxios.get(url)
    },

    // 查询帖子前十条数据
    queryTenPosting(){
        let url = MTURL + '/mt_invitation/play_title'
        return myaxios.get(url)
    },

    // 查询前十条话题
    queryTenTopic(){
        let url = MTURL + '/mt_talk/talk_title'
        return myaxios.get(url)
    },

    // 查询所有帖子
    queryAllPosting(params){
        let url = MTURL + '/mt_invitation/play_invitation'
        return myaxios.get(url,params)
    }

}
export default actorApi;